package com.joysuch.wwyt.streampusher.publisher;

import com.joysuch.wwyt.streampusher.exception.PushException;

/**
 * 推流器
 *
 * @author qingzhou
 *         2017-11-07 17:58
 */
public interface StreamPusher {

    /**
     * 获取唯一标识
     * @return 唯一标识
     */
    String identify();

    /**
     * 是否已经关闭了
     * @return
     */
    boolean isClosed();
    /**
     * 关闭推流
     * @throws PushException 推流异常
     */
    void close() throws PushException;

    /**
     * 开始推流
     * @throws PushException 推流异常
     */
    void open() throws PushException;

}
